import $axios from "./axios";
// 图文验证码
export function captcha(){
  const url = `/entrance/xcxcards/image-captch`;
  return $axios.post(`${url}`);
}
// 手机验证码
export function telverify(data){
  const url = `/entrance/xcxcards/send-msg`;
  return $axios.post(`${url}`,data)
}

// 医生绑定医生卡
export function docbind(data){
  const url = `/entrance/xcxcards/doctors/bind`;
  return $axios.post(`${url}`,data);
}

//医生详情页
export function docdata(doctor_id,data){
  const url = `/entrance/xcxcards/detail/${doctor_id}`;
  return $axios.post(`${url}`,data)
}

//医生详情页动态
export function dynamic(mobile,data){
  const url = `/entrance/xcxcards/dynamic/${mobile}`;
  return $axios.post(`${url}`,data)
}

//医生详情页疾病
export function disease(doctor_id,disease_id){
  const url = `/entrance/xcxcards/disease/${doctor_id}/${disease_id}`;
  return $axios.post(`${url}`)
}


//检测用户是否绑定
export function userCheck(data){
  const url = `/entrance/xcxcards/members/check/bind`;
  return $axios.post(`${url}`,data)
}

//用户绑定医生卡
export function userbind(data){
  const url = `/entrance/xcxcards/members/bind`;
  return $axios.post(`${url}`,data);
}

//医生授权
export function auths(){
  const url = `/entrance/xcxcards/doctors/auth`;
  return $axios.get(`${url}`);
}

//用户授权
export function membersAuths(doctor_id){
  const url = `/entrance/xcxcards/members/auth/${doctor_id}`;
  return $axios.get(`${url}`);
}